import scripts.grassUtils.RecipeUtils;

#基础机械外壳
recipes.remove(<ic2:resource:12>);
mods.forestry.ThermionicFabricator.addCast(<ic2:resource:12> * 1, 
[[<thermalfoundation:material:32>,<thermalfoundation:material:24>,<thermalfoundation:material:32>],
[<thermalfoundation:material:24>,<actuallyadditions:block_misc:4>,<thermalfoundation:material:24>],
[<thermalfoundation:material:32>,<thermalfoundation:material:24>,<thermalfoundation:material:32>]], <liquid: glass> * 1000);
recipes.addShaped(<ic2:resource:12>,
[[<thermalfoundation:material:354>,<ore:energyCrystal>,<thermalfoundation:material:354>],
[<ic2:tool_box>,<ic2:crafting:1>,<ic2:tool_box>],
[<thermalfoundation:material:354>,<ic2:crafting:5>,<thermalfoundation:material:354>]]);

#复制机
recipes.remove(<ic2:te:63>);

#高级电路板
RecipeUtils.recipeTweak(true, <ic2:crafting:2>,
[[<actuallyadditions:item_crystal_empowered>,<minecraft:glowstone_dust>,<actuallyadditions:item_crystal_empowered>],
[<actuallyadditions:item_crystal_empowered:1>,<ic2:crafting:1>,<actuallyadditions:item_crystal_empowered:1>],
[<actuallyadditions:item_crystal_empowered>,<minecraft:glowstone_dust>,<actuallyadditions:item_crystal_empowered>]]);

#储电箱
RecipeUtils.recipeTweak(true, <ic2:te:72>,
[[<ore:plankWood>,<ic2:cable:4>.withTag({type: 4 as byte, insulation: 1 as byte}),<ore:plankWood>],
[<ore:reBattery>,<ic2:resource:12>,<ore:reBattery>],
[<ore:plankWood>,<ore:plankWood>,<ore:plankWood>]]);

#CESU
RecipeUtils.recipeTweak(true, <ic2:te:73>,
[[<thermalfoundation:material:355>,<ic2:cable>.withTag({type: 0 as byte, insulation: 1 as byte}),<thermalfoundation:material:355>],
[<ic2:advanced_re_battery:*>,<ic2:te:72>,<ic2:advanced_re_battery:*>],
[<thermalfoundation:material:355>,<thermalfoundation:material:355>,<thermalfoundation:material:355>]]);

#MFE
recipes.remove(<ic2:te:74>);
RecipeUtils.recipeTweak(true, <ic2:te:74>, 
[[<ic2:cable:2>.withTag({type: 2 as byte, insulation: 2 as byte}),<ore:energyCrystal>,<ic2:cable:2>.withTag({type: 2 as byte, insulation: 2 as byte})],
[<ore:energyCrystal>,<ic2:resource:13>,<ore:energyCrystal>],
[<ic2:cable:2>.withTag({type: 2 as byte, insulation: 2 as byte}),<ore:energyCrystal>,<ic2:cable:2>.withTag({type: 2 as byte, insulation: 2 as byte})]]);

#MFSU
RecipeUtils.recipeTweak(true, <ic2:te:75>,
[[<ore:lapotronCrystal>,<ore:circuitAdvanced>,<ore:lapotronCrystal>],
[<ore:lapotronCrystal>,<ic2:te:74>,<ore:lapotronCrystal>],
[<ore:lapotronCrystal>,<actuallyadditions:item_crystal_empowered:2>,<ore:lapotronCrystal>]]);

#EESU
RecipeUtils.recipeTweak(true, <mets:te:2>,
[[<mets:super_lapotron_crystal:*>,<mets:super_circuit>,<mets:super_lapotron_crystal:*>],
[<mets:super_lapotron_crystal:*>,<ic2:te:75>,<mets:super_lapotron_crystal:*>],
[<mets:super_lapotron_crystal:*>,<actuallyadditions:block_crystal_empowered:4>,<mets:super_lapotron_crystal:*>]]);

#MFSU升级组件
recipes.remove(<ic2:upgrade_kit>);
RecipeUtils.recipeTweak(true, <ic2:upgrade_kit>, 
[[<ore:lapotronCrystal>, <ore:circuitAdvanced>, <ore:lapotronCrystal>], 
[<ore:lapotronCrystal>, <ore:ic2wrench>, <ore:lapotronCrystal>], 
[<ore:lapotronCrystal>, <ore:machineBlockAdvanced>, <ore:lapotronCrystal>]]);

#反应堆冷却液注入器(RZH)
recipes.remove(<ic2:te:84>);
RecipeUtils.recipeTweak(true, <ic2:te:84>, 
[[<ic2:upgrade:4>, <ic2:rsh_condensator>, <ic2:upgrade:4>], 
[<ic2:rsh_condensator>, <ore:machineBlockAdvanced>, <ic2:rsh_condensator>], 
[<ic2:upgrade:4>, <ic2:te:83>, <ic2:upgrade:4>]]);

#反应堆冷却液注入器(LZH)
recipes.remove(<ic2:te:85>);
RecipeUtils.recipeTweak(true, <ic2:te:85>, 
[[<ic2:upgrade:4>, <ic2:lzh_condensator>, <ic2:upgrade:4>], 
[<ic2:lzh_condensator>, <ore:machineBlockAdvanced>, <ic2:lzh_condensator>], 
[<ic2:upgrade:4>, <ic2:te:83>, <ic2:upgrade:4>]]);

#传送机
recipes.remove(<ic2:te:39>);
RecipeUtils.recipeTweak(true, <ic2:te:39>, 
[[<ore:circuitAdvanced>, <ic2:frequency_transmitter>, <ore:circuitAdvanced>], 
[<ore:itemInsulatedGlassCable>, <ore:machineBlockAdvanced>, <ore:itemInsulatedGlassCable>], 
[<ore:circuitAdvanced>, <ore:gemDiamond>, <ore:circuitAdvanced>]]);

#高级采矿机
recipes.remove(<ic2:te:57>);
RecipeUtils.recipeTweak(true, <ic2:te:57>, 
[[<ore:plateAdvancedAlloy>, <ic2:te:60>, <ore:plateAdvancedAlloy>], 
[<ic2:te:*>, <ore:machineBlockAdvanced>, <ic2:te:39>], 
[<ore:plateAdvancedAlloy>, <ic2:te:60>, <ore:plateAdvancedAlloy>]]);

#热能离心机
recipes.remove(<ic2:te:52>);
RecipeUtils.recipeTweak(true, <ic2:te:52>, 
[[<ic2:crafting:5>, <ic2:mining_laser:*>, <ic2:crafting:5>], 
[<ore:ingotIron>, <ore:machineBlockAdvanced>, <ore:ingotIron>], 
[<ore:ingotIron>, <ic2:crafting:6>, <ore:ingotIron>]]);

#模式存储机
recipes.remove(<ic2:te:62>);
RecipeUtils.recipeTweak(true, <ic2:te:62>, 
[[<ic2:resource:11>, <ic2:resource:11>, <ic2:resource:11>], 
[<ic2:crystal_memory>, <ore:machineBlockAdvanced>, <ic2:crystal_memory>], 
[<ic2:mining_laser:*>, <ore:circuitAdvanced>, <ic2:mining_laser:*>]]);

#模式扫描机
recipes.remove(<ic2:te:64>);
RecipeUtils.recipeTweak(true, <ic2:te:64>, 
[[<ore:plateIron>, <ic2:glass>, <ore:plateIron>], 
[<ic2:crafting:6>, <ic2:te:36>, <ic2:crafting:6>], 
[<ore:circuitAdvanced>, <ore:machineBlockAdvanced>, <ore:circuitAdvanced>]]);

#感应炉
recipes.remove(<ic2:te:54>);
RecipeUtils.recipeTweak(true, <ic2:te:54>, 
[[<ore:ingotCopper>, <ore:ingotCopper>, <ore:ingotCopper>], 
[<ore:ingotCopper>, <ic2:te:44>, <ore:ingotCopper>], 
[<ore:ingotCopper>, <ore:machineBlockAdvanced>, <ore:ingotCopper>]]);

#物质生成机
recipes.remove(<ic2:te:61>);
RecipeUtils.recipeTweak(true, <ic2:te:61>, 
[[<ore:dustGlowstone>, <ore:circuitAdvanced>, <ore:dustGlowstone>], 
[<ore:machineBlockAdvanced>, <ore:lapotronCrystal>, <ore:machineBlockAdvanced>], 
[<ore:dustGlowstone>, <ore:circuitAdvanced>, <ore:dustGlowstone>]]);

#地形转换机
recipes.remove(<ic2:te:40>);
RecipeUtils.recipeTweak(true, <ic2:te:40>, 
[[<ore:dustGlowstone>, <ic2:tfbp>, <ore:dustGlowstone>], 
[<ore:dirt>, <ore:machineBlockAdvanced>, <ore:dirt>], 
[<ore:dustGlowstone>, <ore:dirt>, <ore:dustGlowstone>]]);

#批量工作台
recipes.remove(<ic2:te:89>);
RecipeUtils.recipeTweak(true, <ic2:te:89>, 
[[null, <ic2:te:88>, null], 
[<ore:circuitAdvanced>, <ore:machineBlockAdvanced>, <ore:circuitAdvanced>], 
[<ic2:forge_hammer:0>, <ore:ic2wrench>, <ic2:forge_hammer:0>]]);
